export default {
    data () {
        return {
            AdminLevel: "AdminLevel",
            AftersaleOrderStatus: "AftersaleOrderStatus",
            AftersaleStockStatus: "AftersaleStockStatus",
            AftersaleType: "AftersaleType",
            CategoryType: "CategoryType",
            ContactUnitType: "ContactUnitType",
            ExternalProvider: "ExternalProvider",
            FinanceBillStatus: "FinanceBillStatus",
            FinanceBillType: "FinanceBillType",
            ProductStatus: "ProductStatus",
            PurchaseOrderStatus: "PurchaseOrderStatus",
            SaleOrderDeliveryType: "SaleOrderDeliveryType",
            SaleOrderStatus: "SaleOrderStatus",
            SerialNumberStatus: "SerialNumberStatus",
            StockBillStatus: "StockBillStatus",
            StockChangeReason: "StockChangeReason",
            UserType: "UserType"
        }
    },
    computed: {
        arrAdminLevel() {
            // 用户的级别
            return  this.getEnumConfigs(this.AdminLevel).arrs
        },
        arrAftersaleOrderStatus() {
            // 售后维修状态
            return  this.getEnumConfigs(this.AftersaleOrderStatus).arrs
        },
        arrAftersaleStockStatus() {
            // 售后维修库存状态
            return  this.getEnumConfigs(this.AftersaleStockStatus).arrs
        },
        arrAftersaleType() {
            // 售后维修类型
            return  this.getEnumConfigs(this.AftersaleType).arrs
        },
        arrCategoryType() {
            // 分类
            return  this.getEnumConfigs(this.CategoryType).arrs
        },
        arrContactUnitType() {
            // 单位分类
            return  this.getEnumConfigs(this.ContactUnitType).arrs
        },
        arrExternalProvider() {
            return  this.getEnumConfigs(this.ExternalProvider).arrs
        },
        arrFinanceBillStatus() {
            // 财务状态
            return  this.getEnumConfigs(this.FinanceBillStatus).arrs
        },
        arrFinanceBillType() {
            // 财务类型
            return  this.getEnumConfigs(this.FinanceBillType).arrs
        },
        arrProductStatus() {
            // 产品上下架状态
            return  this.getEnumConfigs(this.ProductStatus).arrs
        },
        arrPurchaseOrderStatus() {
            // 进货订单状态
            return  this.getEnumConfigs(this.PurchaseOrderStatus).arrs
        },
        arrSaleOrderDeliveryType() {
            // 销售订单配送方式
            return  this.getEnumConfigs(this.SaleOrderDeliveryType).arrs
        },
        arrSaleOrderStatus() {
            // 销售订单状态
            return  this.getEnumConfigs(this.SaleOrderStatus).arrs
        },
        arrSerialNumberStatus() {
            // 在库出库状态
            return  this.getEnumConfigs(this.SerialNumberStatus).arrs
        },
        arrStockBillStatus() {
            // 库存单状态
            return  this.getEnumConfigs(this.StockBillStatus).arrs
        },
        arrStockChangeReason() {
            // 库存变动说明
            return  this.getEnumConfigs(this.StockChangeReason).arrs
        },
        arrUserType() {
            // 用户类型
            return  this.getEnumConfigs(this.UserType).arrs
        }
    },
    methods: {
        // 用户的级别
        valL1() {
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AdminLevel).objs, "L1", "value")
        },
        valL2() {
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AdminLevel).objs, "L2", "value")
        },
        valL3() {
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AdminLevel).objs, "L3", "value")
        },
        valL4() {
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AdminLevel).objs, "L4", "value")
        },
        valL5() {
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AdminLevel).objs, "L5", "value")
        },

        // 售后维修订单状态
        valAfterSaleUnAudited() {
            // 待审核
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AftersaleOrderStatus).objs, "UnAudited", "value")
        },
        valAfterSaleAudited() {
            // 已审核
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AftersaleOrderStatus).objs, "Audited", "value")
        },
        valAfterSaleCompleted() {
            // 已结单
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AftersaleOrderStatus).objs, "Completed", "value")
        },

        // 售后维修库存状态
        valAfterPending() {
            // 待处理
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AftersaleStockStatus).objs, "Pending", "value")
        },
        valAfterHandling() {
            // 处理中
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AftersaleStockStatus).objs, "Handling", "value")
        },
        valAfterStored() {
            // 已入库
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AftersaleStockStatus).objs, "Stored", "value")
        },
        valAfterDeleted() {
            // 已销除
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AftersaleStockStatus).objs, "Deleted", "value")
        },

        // 售后维修类型
        valAftersales() {
            // 售后单
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AftersaleType).objs, "Aftersales", "value")
        },
        valRepair() {
            // 维修单
            return this.getEnumConfigsItem(this.getEnumConfigs(this.AftersaleType).objs, "Repair", "value")
        },

        // 分类
        valProduct() {
            // 产品分类
            return this.getEnumConfigsItem(this.getEnumConfigs(this.CategoryType).objs, "Product", "value")
        },
        valCategoryCustomer() {
            // 客户分类
            return this.getEnumConfigsItem(this.getEnumConfigs(this.CategoryType).objs, "Customer", "value")
        },
        valExpenditure() {
            // 支出分类
            return this.getEnumConfigsItem(this.getEnumConfigs(this.CategoryType).objs, "Expenditure", "value")
        },
        valRevenue() {
            // 收入分类
            return this.getEnumConfigsItem(this.getEnumConfigs(this.CategoryType).objs, "Revenue", "value")
        },

        // 单位分类
        valSupplier() {
            // 供应商
            return this.getEnumConfigsItem(this.getEnumConfigs(this.ContactUnitType).objs, "Supplier", "value")
        },
        valUnitCustomer() {
             // 客户
            return this.getEnumConfigsItem(this.getEnumConfigs(this.ContactUnitType).objs, "Customer", "value")
        },
        valLogisticsCompany() {
            // 物流公司
            return this.getEnumConfigsItem(this.getEnumConfigs(this.ContactUnitType).objs, "LogisticsCompany", "value")
        },
        valPromotion() {
            // 推广合作
            return this.getEnumConfigsItem(this.getEnumConfigs(this.ContactUnitType).objs, "Promotion", "value")
        },
        valChannel() {
            // 渠道合作
            return this.getEnumConfigsItem(this.getEnumConfigs(this.ContactUnitType).objs, "Channel", "value")
        },
        valStaff() {
            // 员工
            return this.getEnumConfigsItem(this.getEnumConfigs(this.ContactUnitType).objs, "Staff", "value")
        },
        valUnitOther() {
            // 其它
            return this.getEnumConfigsItem(this.getEnumConfigs(this.ContactUnitType).objs, "Other", "value")
        },

        // 财务状态
        valFinanceUnAudited() {
            // 未审核
            return this.getEnumConfigsItem(this.getEnumConfigs(this.FinanceBillStatus).objs, "UnAudited", "value")
        },
        valFinanceRecorded() {
            // 已入账
            return this.getEnumConfigsItem(this.getEnumConfigs(this.FinanceBillStatus).objs, "Recorded", "value")
        },

        // 财务类型
        valFinanceRevenue() {
            // 收入
            return this.getEnumConfigsItem(this.getEnumConfigs(this.FinanceBillType).objs, "Revenue", "value")
        },
        valFinanceExpenditure() {
            // 支出
            return this.getEnumConfigsItem(this.getEnumConfigs(this.FinanceBillType).objs, "Expenditure", "value")
        },

        // 产品上下架状态
        valOnline() {
            // 上架
            return this.getEnumConfigsItem(this.getEnumConfigs(this.ProductStatus).objs, "Online", "value")
        },
        valOffine() {
            // 下架
            return this.getEnumConfigsItem(this.getEnumConfigs(this.ProductStatus).objs, "Offine", "value")
        },

        // 进货订单状态
        valPending() {
            // 待处理
            return this.getEnumConfigsItem(this.getEnumConfigs(this.PurchaseOrderStatus).objs, "Pending", "value")
        },
        valPurchasing() {
            // 采购中
            return this.getEnumConfigsItem(this.getEnumConfigs(this.PurchaseOrderStatus).objs, "Purchasing", "value")
        },
        valPartialStored() {
            // 已部分入库
            return this.getEnumConfigsItem(this.getEnumConfigs(this.PurchaseOrderStatus).objs, "PartialStored", "value")
        },
        valCompleted() {
            // 已完成
            return this.getEnumConfigsItem(this.getEnumConfigs(this.PurchaseOrderStatus).objs, "Completed", "value")
        },

        // 销售订单配送方式
        valOrderSelf() {
            // 自送
            return this.getEnumConfigsItem(this.getEnumConfigs(this.SaleOrderDeliveryType).objs, "Self", "value")
        },
        valOrderLogistics() {
            // 物流
            return this.getEnumConfigsItem(this.getEnumConfigs(this.SaleOrderDeliveryType).objs, "Logistics", "value")
        },

        // 销售订单状态
        valUnAudited() {
            // 待审核
            return this.getEnumConfigsItem(this.getEnumConfigs(this.SaleOrderStatus).objs, "UnAudited", "value")
        },
        valAudited() {
            // 已审核
            return this.getEnumConfigsItem(this.getEnumConfigs(this.SaleOrderStatus).objs, "Audited", "value")
        },
        valPreparing() {
            // 正在装机
            return this.getEnumConfigsItem(this.getEnumConfigs(this.SaleOrderStatus).objs, "Preparing", "value")
        },
        valPrepared() {
            // 备货完成
            return this.getEnumConfigsItem(this.getEnumConfigs(this.SaleOrderStatus).objs, "Prepared", "value")
        },
        valTakeOuted() {
            // 已出库
            return this.getEnumConfigsItem(this.getEnumConfigs(this.SaleOrderStatus).objs, "TakeOuted", "value")
        },
        valDelivered() {
            // 已发货
            return this.getEnumConfigsItem(this.getEnumConfigs(this.SaleOrderStatus).objs, "Delivered", "value")
        },
        valCanceled() {
            // 已取消
            return this.getEnumConfigsItem(this.getEnumConfigs(this.SaleOrderStatus).objs, "Canceled", "value")
        },
        valHangUped() {
            // 已挂起
            return this.getEnumConfigsItem(this.getEnumConfigs(this.SaleOrderStatus).objs, "HangUped", "value")
        },

        // 在库出库状态
        valStored() {
            // 在库
            return this.getEnumConfigsItem(this.getEnumConfigs(this.SerialNumberStatus).objs, "Stored", "value")
        },
        valOuted() {
            // 已出库
            return this.getEnumConfigsItem(this.getEnumConfigs(this.SerialNumberStatus).objs, "Outed", "value")
        },

        // 库存单状态
        valBillCompleted() {
            // 已完成
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockBillStatus).objs, "Completed", "value")
        },
        valBillPending() {
            // 预提交
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockBillStatus).objs, "Pending", "value")
        },
        valBillCanceled() {
            // 已撤销
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockBillStatus).objs, "Canceled", "value")
        },

        // 库存变动说明
        valOrdinaryPutIn() {
            // 一般入库
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockChangeReason).objs, "OrdinaryPutIn", "value")
        },
        valPurchasePutIn() {
            // 进货入库
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockChangeReason).objs, "PurchasePutIn", "value")
        },
        valAftersalePutIn() {
            // 售后入库
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockChangeReason).objs, "AftersalePutIn", "value")
        },
        valOrdinaryTakeOut() {
            // 一般出库
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockChangeReason).objs, "OrdinaryTakeOut", "value")
        },
        valSaleTakeOut() {
            // 销售出库
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockChangeReason).objs, "SaleTakeOut", "value")
        },
        valSaleReturn() {
            // 销售退货
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockChangeReason).objs, "SaleReturn", "value")
        },
        valPurchaseReturn() {
            // 进货退货
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockChangeReason).objs, "PurchaseReturn", "value")
        },
        valSaleExchange() {
            // 销售换货
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockChangeReason).objs, "SaleExchange", "value")
        },
        valAlterSaleExchange() {
            // 售后换货
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockChangeReason).objs, "AlterSaleExchange", "value")
        },
        valWarehouseAllot() {
            // 仓库调货
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockChangeReason).objs, "WarehouseAllot", "value")
        },
        valPutInCancel() {
            // 撤销入库
            return this.getEnumConfigsItem(this.getEnumConfigs(this.StockChangeReason).objs, "PutInCancel", "value")
        },

        // 用户类型
        valAdmin() {
            // 管理员
            return this.getEnumConfigsItem(this.getEnumConfigs(this.UserType).objs, "Admin", "value")
        },
        valMember() {
            // 会员
            return this.getEnumConfigsItem(this.getEnumConfigs(this.UserType).objs, "Member", "value")
        }
    }
  }
  
  
  